import 'package:hotpot/generated/json/base/json_field.dart';
import 'package:hotpot/generated/json/sale_order_line.g.dart';
import 'dart:convert';

@JsonSerializable()
class SaleOrderLine {

	int? id;
  @JSONField(name: 'product_id')
  List<String>? productId;
  @JSONField(name: 'product_uom_qty')
  int? productUomQty;
  @JSONField(name: 'price_unit')
  double? priceUnit;
  @JSONField(name: 'price_tax')
  double? priceTax;
  @JSONField(name: 'price_total')
  double? priceTotal;
  
  SaleOrderLine();

  factory SaleOrderLine.fromJson(Map<String, dynamic> json) => $SaleOrderLineFromJson(json);

  Map<String, dynamic> toJson() => $SaleOrderLineToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}